import axios from 'axios';
import qs from 'querystring';

export const editPassiveDetection = body => {
  return axios.post('/api/system/editPassiveDetectionConfig', body);
};

export const changePassiveStatus = body => {
  return axios.post('/api/system/editPassiveDetectionConfig', body);
};

export const getPassiveDetectionList = params => {
  return axios.get(`/api/system/getPassiveDetectionConfig?${qs.stringify(params)}`);
};
